<div class="text-left col-xs-9 col-xs-offset-2 col-md-4 col-md-offset-4" style="margin-top: 50px;">
    <?php
    echo $this->Form->create('User', array(
        'inputDefaults' => array(
            'div' => array('class' => 'col-xs-12'),
            'label' => false,
            'wrapInput' => false,
            'class' => 'form-control col-xs-12'
        ),
        'url' => array('action' => 'login'),
        'role' => 'form',
        'type' => 'post'
    ));
    ?>
    <div class="panel panel-default">
        <div class="panel-heading">Login</div>
        <div class="panel-body">

            <?php echo $this->Form->input('username', array('placeholder' => __('Username'), 'beforeInput' => '<div class="input-group"><span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span>', 'afterInput' => '</div>', 'autofocus' => 'autofocus')); ?>
            <?php echo $this->Form->input('password', array('placeholder' => __('Password'), 'beforeInput' => '<div class="input-group"><span class="input-group-addon"><span class="glyphicon glyphicon-lock"></span></span>', 'afterInput' => '</div>', 'autofocus' => 'autofocus')); ?>


        </div>
        <div class="panel-footer">
            <div class="text-center">
                <?php echo $this->Form->button(__('Login'), array('type' => 'submit', 'class' => 'btn btn-primary')); ?>
                <?php echo $this->Html->link(__('Sign up'), array('action' => 'add'), array('class' => 'btn btn-danger')); ?>
            </div>
        </div>
    </div>
    <?php echo $this->Form->end(); ?>
</div>
<div class="clearfix"></div>